<!-- $Id: site_add_step1.htm 7742 2007-04-02 03:54:18Z wj $ -->

{include file="pageheader.htm"}
{insert_scripts files="validator.js"}

<div class="main-div">

<form method="post" action="/admin/?controller=sites&action=editsite" name="theForm"  id="theForm" enctype="multipart/form-data" onsubmit="return validate()">

<table id="group-table" >
  <tr>
    <td class="label">{$lang.site_name}</td>
    <td colspan="2"><input type="text" name="site_name" maxlength="60" value="{$site.site_name}" />{$lang.require_field}</td>
  </tr>
  <tr>
    <td class="label">{$lang.site_url}</td>
    <td colspan="2"><input type="text" name="site_url" maxlength="60" size="40" value="{$site.site_url}" /></td>
  </tr>

    <tr>
    <td class="label">{$lang.site_select_tpl}</td>
    <td colspan="2">
	{select_sitetpl selected=$site.site_tpl}			
	</td>
  </tr>


  <tr>
    <td colspan="3" align="center"><br />
      <input type="submit" class="button" value="{$lang.button_submit}" />
      <input type="reset" class="button" value="{$lang.button_reset}" />
      <input type="hidden" name="act" value="{$form_action}" />
    </td>
  </tr>
</table>
</form>

</div>
{insert_scripts files="../js/utils.js,validator.js"}
{literal}
<script language="JavaScript">

<!--

document.forms['theForm'].elements['site_name'].focus();

/**
 * 检查表单输入的数据
 */
function validate()
{
    validator = new Validator("theForm");
    validator.required("site_name",  no_brandname);
    validator.required("sort_uri", no_brandname);
    return validator.passed();
}

//-->
</script>
{/literal}
{include file="pagefooter.htm"}